<template>
	<view class="">
		<view class="banmi_flex a-c j-c" style="width: 100%;height: 80vh;">
			<image class="weisubao-loading-img" src="@/static/lo.gif"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad(on) {


			let url = '';
			if (on.site) {
				url = '/store_login?site=' + on.site
			} else {
				url = 'login'
			}

			if (!uni.getStorageSync('admin_token')) {
				uni.redirectTo({
					url: url
				})
				return
			}






			var saas_id = uni.getStorageSync('saas_id')
			if (saas_id == 0) {
				uni.$emit('banmi_login', {
					title: 1,
					url: '/pages/banmi/admin_info'
				});
				url = '/pages/banmi/admin_info?id=1';
			} else {
				uni.$emit('banmi_login', {
					title: 1,
					url: '/pages/banmi/statistics/statistics'
				});
				url = '/pages/banmi/statistics/statistics?id=1&id=0';
			}
			uni.redirectTo({
				url: url
			})

		},
		methods: {


		}
	}
</script>

<style>
	.weisubao-loading-img {
		width: 100rpx;
		height: 100rpx;
	}
</style>